#include "common.h"

#include <sys/stat.h>
#include <fcntl.h>

int main()
{
	int fd = open("seek_append.data", O_RDWR | O_CREAT | O_TRUNC | O_APPEND, 0755);

	write(fd, "helloLseek\n", strlen("helloLseek\n"));

	int n = lseek(fd, 0, SEEK_END);
	printf("%d\n", n);

	return 0;
}
